﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using QFramework;
using UnityEngine;

namespace PlatformShoot
{
    public class PlastformShootGame : Architecture<PlastformShootGame>
    {
        protected override void Init()
        {
            RegisterModel<IGameModel>(new GameModel());

            RegisterModel<IGameAudioModel>(new GameAudioModel());

            RegisterSystem<ITimerSystem>(new TimerSystem());

            RegisterSystem<ICameraSystem>(new CameraSystem());

            RegisterSystem<IObjectPoolSystem>(new ObjectPoolSystem());

            RegisterSystem<IAudioMgrSystem>(new AudioMgrSystem());
        }
    }

    public class PlastformShootGameController : MonoBehaviour, IController
    {
        IArchitecture IBelongToArchitecture.GetArchitecture() => PlastformShootGame.Interface;
    }
}